package com.example.sfm.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sfm
 * @since 2025-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("classes")
@Schema(name="Classes对象",description = "班级表")
public class Classes implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "班级ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "班级名称")
    private String className;

    @Schema(description = "所属学院")
    private String department;

    @Schema(description = "所教教师ID（教师表关联）")
    private Integer teacherId;

    @Schema(description = "年级（如2023表示2023级）")
    private Integer gradeYear;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
